

<link rel="stylesheet" href="__CSS__/mall.css"/>

<script src="__STATIC__/js/ace-extra.min.js"></script>
<script src="__STATIC__/js/laydate.js"></script>



<div class="page-header mbx">
    <h1>
        <small>
            {$companyName}分公司管理 ｜分红申请记录 <i class="ace-icon fa fa-times xx"></i>
        </small>
    </h1>
</div>
<div class="mbx" style="padding-bottom: 200px;">
    <div class="widget-box transparent">
        <div class="nav-tab" style="position: relative">
            <ul class="nav-tab-title ">
                <li class="nav-this">分红申请记录</li>
            </ul>
        </div>

        <div class="widget-body">
            <div class="widget-main padding-10">
                <div class="row">
                    <div class="col-xs-12">
                        <form class="form-horizontal s_input-bgcolor" method="post" action="/admin/profit/checkList">
                            <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label text-right no-padding-right">审核状态： </label>
                                    <div class="col-sm-8">
                                        <select class="form-control" name="status">
                                            <option {if condition="$postArr.status eq '全部' "}selected='selected'{/if}>全部</option>
                                            <option {if condition="$postArr.status eq '待审核' "}selected='selected'{/if}>待审核</option>
                                            <option {if condition="$postArr.status eq '审核通过' "}selected='selected'{/if}>审核通过</option>
                                            <option {if condition="$postArr.status eq '审核不通过' "}selected='selected'{/if}>审核不通过</option>
                                        </select>
                                    </div>
                                </div>
                            </div>

                            <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label text-right no-padding-right">分红类型： </label>
                                    <div class="col-sm-8">
                                        <select class="form-control" name="statustype">
                                            <option {if condition="$postArr.statustype eq '全部' "}selected='selected'{/if}>全部</option>
                                            <option {if condition="$postArr.statustype eq '按季度分红' "}selected='selected'{/if}>按季度分红</option>
                                            <option {if condition="$postArr.statustype eq '按月分红' "}selected='selected'{/if}>按月分红</option>
                                            <option {if condition="$postArr.statustype eq '按年分红' "}selected='selected'{/if}>按年分红</option>
                                        </select>
                                    </div>
                                </div>
                            </div>

                                <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 ">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label text-right no-padding-right">申请时间： </label>
                                        <div class="col-sm-8">
                                            <div class="input-daterange input-group">
                                                <input type="text" class="input-sm form-control hm-shop-upgrade" placeholder="开始时间" name="start" id="start" value="{$postArr.start}">
                                                <span class="input-group-addon" style="background: none;border: none;">
																	-
																</span>
                                                <input type="text" class="input-sm form-control hm-shop-upgrade" placeholder="结束时间" name="end" id="end" value="{$postArr.end}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="text-right">
                                    <button class="btn " style="width: 120px;    border-radius: 2rem; background: #fba40a!important;border-color: #fba40a;margin-left: 20px;">查询</button>
                                </div>

                        </form>
                        <div class="space"></div>
                        <div class="row">
                            <div class="col-xs-12">
                                <table id="sample-table-1" class="table table-hover" width="100%" style="table-layout:fixed">
                                    <thead>
                                    <tr>
                                        <th class="left">分红发起人</th>
                                        <th class="left">可分红金额（￥）</th>
                                        <th class="left">分红类型</th>
                                        <th class="left">审核状态</th>
                                        <th class="left">申请时间</th>
                                        <th class="left">审核意见</th>
                                        <th class="left">审核人</th>
                                        <th class="left">审核时间</th>
                                        <th class="left">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {empty name="resList"}
                                    <tr class="s_tr-vertical">
                                        <td colspan="9" class="center" style="color: red;">没有查询到结果</td>
                                    </tr>
                                    {/empty}
                                    {volist name="resList" id="vo"}
                                    <tr class="s_tr-vertical">
                                        <td class="left">{$ManageRes[$vo[initiator_id]][realname]}</td>
                                        <td class="left">{$vo.allot_money}</td>
                                        <td class="left">{$Res[$vo.allot_model]}</td>
                                        <td class="left">{$checkRes[$vo.state]}</td>
                                        <td class="left">{$vo.apply_time}</td>
                                        <td class="left">{$vo.audit_opinion}</td>
                                        <td class="left">{$AuditorRes[$vo[auditor]][realname]}</td>
                                        <td class="left">{$vo.audit_time}</td>
                                        <td class="left">
                                            {if condition="($Think.session.user_type eq 1)"}
                                                {if condition="($vo.state == 0)"}
                                            <a href="/admin/profit/checkdetailed?id={$vo.Id}&page={$page}" style="cursor: pointer">审核</a>
                                                    {else /}
                                            <a href="/admin/profit/checkdetails?id={$vo.Id}" style="cursor: pointer">详情</a>
                                                {/if}
                                            {else /}
                                            <a href="/admin/profit/checkdetails?id={$vo.Id}" style="cursor: pointer">详情</a>
                                            {/if}

                                        </td>
                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <!--分页器-->
                <div class="text-center">
                    {$pageShow}
                </div>
            </div>
        </div>
    </div>
</div>


<script type="text/javascript">
    laydate.render({
        elem: '#start' //指定元素
    });
    laydate.render({
        elem: '#end' //指定元素
    });
</script>